package com.kaoshi.serverfw.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dwellers")
@ApiModel(value="Dwellers对象", description="")
public class Dwellers implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "居民名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "性别(1：男 0：女)")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty(value = "身份证号")
    @TableField("identity")
    private String identity;

    @ApiModelProperty(value = "出生年月")
    @TableField("birthday")
    private LocalDate birthday;

    @ApiModelProperty(value = "联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "现居地")
    @TableField("current")
    private String current;

    @ApiModelProperty(value = "居民标签")
    @TableField("label")
    private String label;

    @ApiModelProperty(value = "家庭成员外键")
    @TableField("mid")
    private Integer mid;

    @ApiModelProperty(value = "健康随访信息表外键")
    @TableField("hid")
    private Integer hid;


}
